﻿import Router from 'vue-router'
import Index from '@let/layer_letter/Index'
import Index_main from "@let/layer_letter/index_main"
//Exchange
import Gitf_Exchange from "../wx_Gift_Exchange"
//import my_Exchange from "@Exc/My_Gift"
import  Detail_Exchange from "../Detail_Exchange"
//官方兑换
const Off_Gift = r => require.ensure([], () => r(require('../Off_Gift')));
const my_Exchange = r => require.ensure([], () => r(require('../My_Gift')));
// const Detail_Exchange = r => require.ensure([], () => r(require('../Detail_Exchange')))
const Letter_man  = r => require.ensure([], () => r(require('../Letter_man')))
const my_upload  = r => require.ensure([], () => r(require('../my_upload')))
// const Gitf_Exchange  = r => require.ensure([], () => r(require('../wx_Gift_Exchange')))
//const inner_login = r => require.ensure([], () => r(require('@/components/login/inner_login.vue')));
//login
//import Wrap_login from "../letter_man_login/wrap_login"
//import Finish_msg from "../letter_man_login/finish_msg"
//import Finisth_msg_2 from "../letter_man_login/finish_msg_2"
//import Finisth_msg_3 from "../letter_man_login/finish_msg_3"
export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/Gitf_Exchange",
      meta: {
        //requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
      name: 'Index',
      component: Index,
      children: [
          {
              path: "Gitf_Exchange",
              component: Gitf_Exchange
          },
      ]
    },
    {
        path: "/my_Exchange",
        component:my_Exchange
    },
    {
        path: "/Detail_Exchange",
        component: Detail_Exchange
    },
    {
        path: "/letter_man",
        component:Letter_man
    },
   {
      path:"/my_upload",
      component: my_upload
    },
   {
       path: "/Off_Gift",
       component: Off_Gift
   }
   // {
   //    path: "/Wrap_login",
   //    component: Wrap_login,
   //    redirect: "/Wrap_login/Finish_msg",
   //    children: [
   //        {
   //            path: "Finish_msg",
   //            component: Finish_msg
   //        },
   //        {
   //            path: "Finisth_msg_2",
   //            component: Finisth_msg_2
   //        },
   //        {
   //            path: "Finisth_msg_3",
   //            component: Finisth_msg_3
   //        }
   //    ]
   //},
    ],

})
